app.service('wzgyhData',function () {
    var data = {};
    this.setData = function (newData) {
        data = newData;
    };
    this.getData = function (){
        return data
    }
}).controller('wzgyh',['$scope','$http','wzgyhData',function ($scope,$http,wzgyhData) {
    var token = localStorage.getItem('token');
    mui.showLoading('正在加载','div');
    //
    $http({
        method: "POST",
        url: mainUrl+'/srp/srp-tro-detail!find.action',
        params: {
            'Authorization': token,
            'qm.remindCode':'102',
            'page':1,
            'start':0,
            'limit':999999

        }
    }).then(
        function(data, status, headers, config){
            console.log(data);
            $scope.items = data.data.items;
            mui.hideLoading();
        },function(data, status, headers, config){

        }
    );
    $scope.sending= function ($event) {
        wzgyhData.setData($event);
        console.log($event)
    }
}]);